package com.appointment.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ProfessorListRequestDto {

    @NotNull(message = "专家姓名不能为空")
    @Size(min = 0, max = 20, message = "专家姓名长度不能超过20")
    private String name;
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private int pageNum;
    @NotNull(message = "每页数量不能为空")
    @Min(value = 0, message = "每页数量不能小于0")
    private int pageSize;
}
